package com.ruoyi.service.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.service.mapper.ServiceWardMapper;
import com.ruoyi.service.domain.ServiceWard;
import com.ruoyi.service.service.IServiceWardService;

/**
 * 病区Service业务层处理
 * 
 * @author ZDL
 * @date 2024-11-12
 */
@Service
public class ServiceWardServiceImpl implements IServiceWardService 
{
    @Autowired
    private ServiceWardMapper serviceWardMapper;

    /**
     * 查询病区
     * 
     * @param wardId 病区主键
     * @return 病区
     */
    @Override
    public ServiceWard selectServiceWardByWardId(Long wardId)
    {
        return serviceWardMapper.selectServiceWardByWardId(wardId);
    }

    /**
     * 查询病区列表
     * 
     * @param serviceWard 病区
     * @return 病区
     */
    @Override
    public List<ServiceWard> selectServiceWardList(ServiceWard serviceWard)
    {
        return serviceWardMapper.selectServiceWardList(serviceWard);
    }

    /**
     * 新增病区
     * 
     * @param serviceWard 病区
     * @return 结果
     */
    @Override
    public int insertServiceWard(ServiceWard serviceWard)
    {
        return serviceWardMapper.insertServiceWard(serviceWard);
    }

    /**
     * 修改病区
     * 
     * @param serviceWard 病区
     * @return 结果
     */
    @Override
    public int updateServiceWard(ServiceWard serviceWard)
    {
        return serviceWardMapper.updateServiceWard(serviceWard);
    }

    /**
     * 批量删除病区
     * 
     * @param wardIds 需要删除的病区主键
     * @return 结果
     */
    @Override
    public int deleteServiceWardByWardIds(Long[] wardIds)
    {
        return serviceWardMapper.deleteServiceWardByWardIds(wardIds);
    }

    /**
     * 删除病区信息
     * 
     * @param wardId 病区主键
     * @return 结果
     */
    @Override
    public int deleteServiceWardByWardId(Long wardId)
    {
        return serviceWardMapper.deleteServiceWardByWardId(wardId);
    }
}
